package liming.tool.handle.net.root;


import liming.tool.handle.net.root.base.GetDataAndPacket;
import liming.tool.handle.net.root.base.IP;
import liming.tool.pool.ListPool;
import liming.tool.pool.Pools;

import java.io.Closeable;
import java.net.InetAddress;

/**
 * 网络通信基类，初始化接口方法
 */
public abstract class RootSocket extends IP implements GetDataAndPacket, Closeable {
    protected static final ListPool<Object> LOG = Pools.getListPool("liming.tool.net.socket.log");
    protected static final ListPool<Object> SLOG = Pools.getListPool("liming.tool.net.socket.slog");

    /**
     * 默认构造函数，在网络通信中，套接字信息都是一个必要的参数
     *
     * @param port
     */
    public RootSocket(InetAddress inetAddress, int port) {
        super(inetAddress, port);
    }
}
